FROM python:3.10.10

# 创建用户
RUN useradd -ms /bin/bash angular
RUN mkdir -p /home/angular/jupyter
COPY ./Jupyter-Notebook/ /home/angular/jupyter/
RUN cd /home/angular/jupyter/
RUN cd /home/angular/jupyter/ && pip install -e . -i  https://pypi.tuna.tsinghua.edu.cn/simple

# 设置默认目录
RUN jupyter notebook --generate-config
RUN echo "c.NotebookApp.notebook_dir='/home/angular'" >> /root/.jupyter/jupyter_notebook_config.py

EXPOSE 8888
CMD jupyter notebook --ip 0.0.0.0 --port 8888 --allow-root --no-browser